Creates a new object that is a copy of the source object.
HRESULT Duplicate([out,retval] IADTObject ** newCopy);
Duplicate([out,retval] IADTObject * newCopy);
Sub Duplicate(newCopy As [out,retval] IADTObject *)
Returns an ADTObject that is a duplicate of the source object.
Use the Duplicate method when you want to create a new object based on an existing object. For example, if you want to create a new job that is similar to an existing one, you would use the Duplicate method.
The new object generally is a complete copy of the source object (including all properties and collections), with a new OID. For some classes the copy is not exact. For example, when you duplicate a job, the new copy does not get the old job's history, log messages, or status.
adTempus API Reference version 3.0.0.0, revised 10/30/2008
|